package com.hc.web.impl;

import com.hc.common.utils.AssertUtil;
import com.hc.web.dao.MyTableDao;
import com.hc.web.entity.MyTable;
import com.hc.cursorutils.CursorPageBaseReq;
import com.hc.cursorutils.CursorPageBaseResp;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @Author: huangcheng
 * @CreateTime: 2024-12-05  15:49
 * @Description:
 * @Version: 1.0
 */
@Service
@Slf4j
public class MyTableServiceImpl{
    @Autowired
    private MyTableDao myTableDao;

    public CursorPageBaseResp<MyTable> getPage(CursorPageBaseReq req){
        log.info("sssssssss");
        AssertUtil.isNotEmpty(req,"req不能为空");
        CursorPageBaseResp<MyTable> page = myTableDao.getPage("34", req);
        return CursorPageBaseResp.init(page,page.getList());
    }
}
